package com.px.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
@Configuration
@PropertySource("classpath:pay.properties")
@ConfigurationProperties(prefix = "pay")
public class AlipayConfig {
    //支付宝网关的地址
    private String url;
    //应用的id
    private String appID;
    //应用的私钥
    private String rsaPrivateKey;
    //支付宝应用公钥
    private String alipayPublicKey;
    //异步通知的路径
    private String notifyUrl;
    //同步通知的路径
    private String returnUrl;
    //字符集
    private String charset;
    //发送的格式
    private String format;
    //加签的方式
    private String signType;
    //支付成功后展示的页面路径
    private String paymentSuccessUrl;
    //支付失败后展示的页面路径
    private String paymentFailureUrl;
}
